package com.cms.util.updown;

import java.io.*;

import org.apache.commons.logging.*;

public class FileDeleteUtil {
	
	private static Log log = LogFactory.getFactory().getInstance(FileDeleteUtil.class);

	public static void doFileDelete(String targetDirectory, String fileName) 
		throws FileNotFoundException, IOException {
		
		String path = targetDirectory;
		
		log.debug("file path : " + path + fileName);
		File f = new File(path + fileName);
		f.delete();
		
		log.debug(fileName + " is deleted by user");
	}
}
